<?php
	('Access-Control-Allow-Origin：*');
	include("../config/mysql.php");
	$id = $_POST["id"];
    $subject = addslashes($_POST["subject"]);
	$answer = addslashes($_POST["answer"]);
	$questionType = $_POST["questionType"];
	$school = addslashes($_POST["school"]);
	$option = $_POST["option"];
	$course = $_POST["course"];
	$db = new mysql();
	$sql = "update questions set subject='{$subject}',answer='{$answer}',questionType='{$questionType}',school='{$school}',`option`='{$option}',course='{$course}' where id = '{$id}'";
	echo $db->Query($sql);
	$db->close();
?>